//全局设置

import Vue from 'vue'
import App from './App.vue'
import router from './router'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import './assets/gloable.css'
import request from "@/utils/request";
import VueParticles from 'vue-particles'

// 解决重复点击导航栏按钮报错
import Router from 'vue-router'
const originalPush = Router.prototype.push
Router.prototype.push = function push(location) {
  return originalPush.call(this, location).catch(err => err)
}

Vue.config.productionTip = false

Vue.use(ElementUI, {size:"small"});

Vue.use(VueParticles)

Vue.prototype.request = request

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
